import request from '@/utils/request'

// 查询司机端APP优化列表
export function listApps(query) {
  return request({
    url: '/platform/apps/list',
    method: 'get',
    params: query
  })
}

// 查询司机端APP优化详细
export function getApps(driverAppId) {
  return request({
    url: '/platform/apps/' + driverAppId,
    method: 'get'
  })
}

// 新增司机端APP优化
export function addApps(data) {
  return request({
    url: '/platform/apps',
    method: 'post',
    data: data
  })
}

// 修改司机端APP优化
export function updateApps(data) {
  return request({
    url: '/platform/apps',
    method: 'put',
    data: data
  })
}

// 删除司机端APP优化
export function delApps(driverAppId) {
  return request({
    url: '/platform/apps/' + driverAppId,
    method: 'delete'
  })
}
